package io.lkt.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.lkt.common.util.Query;
import io.lkt.common.utils.PageUtils;
import io.lkt.modules.sys.entity.BOrderInfoEntity;
import io.lkt.modules.sys.entity.BOrderVitalEntity;
import io.lkt.modules.sys.entity.SysUserEntity;
import io.lkt.modules.sys.entity.VipOrderAnalyseEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author xss
 * @email dustwas@163.com
 * @date 2019-04-29 15:04:53
 */
public interface BOrderInfoService extends IService<BOrderInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<BOrderInfoEntity> queryList(Map<String,Object> map);

    List<BOrderVitalEntity> queryVital(Map<String,Object> map);

    Integer queryTotal(Map<String,Object> map);

    Integer queryVitelTotal(Map<String, Object> map);

    int addOrder(BOrderInfoEntity bOrderInfoEntity);

    BOrderInfoEntity getInfo(String id);

    void drawback(BOrderInfoEntity bOrderInfoEntity);

    BOrderVitalEntity queryVitalSum(Map<String,Object> map);

    BOrderVitalEntity queryVitalRefundSum(Map<String,Object> map);

    Integer queryPrepayTotal(Map<String,Object> map);

    BOrderInfoEntity getLatestPrepayOrder(Map<String, Object> params);

    void updateFollowStatus(String orderId, Date followTime, Long followDuration, Long userId, String remark);

    List<SysUserEntity> getValidFollowOrderSummaryList(Map<String, Object> params);

    List<SysUserEntity> getValidDealedOrderSummaryList(Map<String, Object> params);

    List<SysUserEntity> getSysUserFollowList(Map<String, Object> params);

    Integer getSysUserFollowListTotal(Map<String, Object> params);

    List<String> getSysUserFollowOrderIdList(Map<String, Object> params);

    List<String> getSysUserDealedOrderIdList(Map<String, Object> params);

    List<BOrderInfoEntity> getfollowInfoByUserId(Map<String, Object> params);

    List<VipOrderAnalyseEntity> getGzhVipOrderAnalyse(Map<String, Object> params);

    List<VipOrderAnalyseEntity> getSummaryVipOrderAnalyse(Map<String, Object> params);
}

